﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;

public partial class Default2 : System.Web.UI.Page
{
    PagedDataSource PDS = new PagedDataSource();
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!this.Page.IsPostBack)
        {
            this.bind();
        }
    }

    private void bind()
    {
        SqlConnection conn = new SqlConnection(SqlDataSource1.ConnectionString);
        conn.Open();
        SqlDataAdapter da = new SqlDataAdapter(SqlDataSource1.SelectCommand, conn);
        DataSet ds = new DataSet();
        da.Fill(ds, "En_NewsTable");
        DataView dv = ds.Tables[0].DefaultView;

       
       
        conn.Close();

      
        Repeater1.DataBind();
    }
}
